package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.ZxbApply;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2023-06-09
 */
@Service
public class ZxbApplyService_base   {
    //@Autowired
    //private MyBatisPlusCommonDao<ZxbApply> userDao;

    private BaseMapper<ZxbApply> userMapper;
    @Autowired
    public ZxbApplyService_base(BaseMapper<ZxbApply> userMapper) {
        this.userMapper = userMapper;
    }
    public List<ZxbApply> getUsersByCondition(QueryWrapper<ZxbApply> queryWrapper) {
        return userMapper.selectList(queryWrapper);
    }

//    public
//    List<ZxbApply> getAllUsers() {
//        return userDao.findAll();
//    }
//
//    public ZxbApply getUserById(Long id) {
//        return userDao.findById(id);
//    }
//
//    public List<ZxbApply> getUsersByCondition(QueryWrapper<ZxbApply> queryWrapper) {
//        return userDao.findByCondition(queryWrapper);
//    }
//
//    public int createUser(ZxbApply user) {
//        return userDao.insert(user);
//    }
//
//    public int updateUser(ZxbApply user) {
//        return userDao.update(user);
//    }
//
//    public int deleteUserById(Long id) {
//        return userDao.deleteById(id);
//    }

}
